package com.xiaomo.gitee.datamanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName images
 */
@TableName(value ="images")
@Data
@NoArgsConstructor
@Schema(description = "图片信息对象",name = "图片信息模型",title = "图片信息模型")
public class Images implements Serializable {


    @Schema(
            title = "id",
            name = "图片ID",
            example = "图片ID",
            format = "uuid",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;


    @Schema(
            title = "name",
            name = "图片名称",
            example = "图片名称",
            format = "string",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    @TableField("name")
    private String name;


    @Schema(
            title = "classification",
            name = "图片所属数据集ID",
            example = "图片所属数据集ID",
            format = "number",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    @TableField("classification")
    private Long classification;

    @TableField(exist = false)
    @Hidden
    private Long sequenceNumber;

    @Serial
    private static final long serialVersionUID = 1L;

    public Images(String id, String name, Long classification) {
        this.id = id;
        this.name = name;
        this.classification = classification;
    }
}